<?php

/*------------------------------------------------
*
*   Explay Engine Content Management System.
*   Copyright © 2008 Golovdinov Alexander.
*
*-------------------------------------------------
*
*   Official site: wwww.alex-home.spb.ru/explay.html
*   Contact e-mail: golovdinov@gmail.com
*
*   GNU General Public License original source:
*   http://www.gnu.org/licenses/gpl-3.0.html
*
------------------------------------------------*/

if (!is_moderator () && !is_admin ()) exit;
if (!isset($_GET['id'])) exit;

$id = intval ($_GET['id']);

$db->query ("UPDATE ".DB_PEREFIX."_articles SET art_publik = 'yes' WHERE art_id = '$id'");
